// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-01

package balance

import (
	"gitee.com/go-wares/framework-iris/framework"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/user/balance/records"
	"server/app/http/logics/user/balance/withdrawal"
	"server/app/http/logics/user/balance/withdrawaled"
)

// Controller
// 用户接口.
//
// @RoutePrefix("/user/balance")
// @Middleware("authorizer")
type Controller struct{}

// GetRecords
// 账单.
func (o *Controller) GetRecords(i iris.Context) {
	framework.Do(i, records.New)
}

// GetWithdrawaled
// 提现记录.
func (o *Controller) GetWithdrawaled(i iris.Context) {
	framework.Do(i, withdrawaled.New)
}

// PostWithdrawal
// 发起提现.
func (o *Controller) PostWithdrawal(i iris.Context) {
	framework.Do(i, withdrawal.New)
}
